package com.lemobar.pay.model.alipay.request;


import com.lemobar.pay.constants.AliPayConstants;
import com.lemobar.pay.enums.AliPayMethodEnum;
import lombok.Data;

/**
 * 支付宝 app 撤销
 * alipay.trade.cancel(统一收单交易撤销接口)
 * 支付宝付款码支付 https://opendocs.alipay.com/open/02ekfr
 * APP支付 https://opendocs.alipay.com/open/02e7gt
 */
@Data
public class AliPayTradeCancelRequest {
    private String appId;

    private String method = AliPayMethodEnum.ALIPAY_TRADE_CANCEL.getCode();

    private String format = AliPayConstants.FORMAT_JSON;

    private String charset = AliPayConstants.CHARSET_UTF8_LOWER;

    private String signType = AliPayConstants.SIGN_TYPE_RSA2;

    private String sign;

    private String timestamp;

    private String version = AliPayConstants.API_VERSION;

    private String appAuthToken;

    private String bizContent;


    @Data
    public static class BizContent {
        private String outTradeNo;
        private String tradeNo;
    }
}
